package com.qk.common.excption;

import com.qk.common.enums.Code;

/**
 * Date:2025/10/11
 * Author:zxc
 * Description
 */
public class BizException extends BaseException{
    public BizException(Code code) {
        super(code.getChars());
    }

    /**
     * 抛出通用异常
     * @param code 枚举
     */
    public static void throwBizException(Code code) {
        throw new BizException(code);
    }

}
